package com.msmall.community.bbs.service;

import java.util.List;

import com.msmall.base.pager.PaginationSupport;
import com.msmall.base.service.BaseManager;
import com.msmall.community.bbs.model.Favorite;

public interface FavoriteManager extends BaseManager<Favorite, Long>{
	
	public void save(Long userid, Long topicId) throws Exception;
	
	public Favorite getFavorite(Long userid, Long topicId) throws Exception;
	
	public void getPagination(PaginationSupport page, Long userid);
	
	/**
	 * 获得用户所有收藏的帖子
	 */
	public List<Favorite> getAllByUserid(Long userid);
}
